<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:icecore="http://www.icefaces.org/icefaces/core"
	xmlns:ace="http://www.icefaces.org/icefaces/components"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
<h:head>
	<ice:outputStyle href="#{baseMBean.securedOutPutStyleURL}"></ice:outputStyle>
</h:head>
<h:body class="#{baseMBean.securedOutPutBodyClass}">
	<f:loadBundle
		basename="com/avecsys/quotemanager/resources/messages_supplier"
		var="msgs_supplier"></f:loadBundle>
	<f:loadBundle
		basename="com/avecsys/quotemanager/resources/messages_common"
		var="msgs_common"></f:loadBundle>
	<c:if test="${baseMBean.menuBarEnabled == 'true'}">
		<h:form id="menuBarForm">
			<icecore:singleSubmit />
			<ice:menuBar styleClass="menuBar">
		        <ice:menuItems value="#{menuBarMBean.menuModel}"/>
		    </ice:menuBar>
	    </h:form>		
	</c:if>
	<h:form id="form">
		<f:event listener="#{loginMBean.isUserSignedIn}" type="preRenderView"></f:event>
		<f:event
			listener="#{quoteTransactionListMBean.loadAllBuyerAcceptedQuotes}"
			type="preRenderView"></f:event>
		<div class="page-container">
			<div class="pageHeader">
				<ice:panelGrid columns="2">
					<ice:graphicImage
						url="#{quoteTransactionListMBean.getImageResourceURL('PAGE_HEADER_ICON_SUPPLIER_INQUIRY')}"></ice:graphicImage>
					<ice:outputLabel
						value="#{msgs_supplier.LIST_OF_QUOTES_BUYER_TO_REPLY_INQUIRY_HEADER_SECTION_TITLE}"
						styleClass="pageHeaderTitleText"></ice:outputLabel>
				</ice:panelGrid>
			</div>
			<center>
				<ace:dataTable id="supplierSendQuotesTableID"
					value="#{quoteTransactionListMBean.quoteTransactionPojoList}"
					var="quoteTransactionPojo" paginator="true"
					emptyMessage="#{msgs_common.DATATABLE_EMPTY_MESSAGE}"
					paginatorPosition="bottom">
					<ace:column id="sellerCompanyID" styleClass="tr1"
						sortBy="#{quoteTransactionPojo.supplierMasterPojo.companyMasterPojo.companyName}"
						filterBy="#{quoteTransactionPojo.supplierMasterPojo.companyMasterPojo.companyName}"
						filterMatchMode="contains">
						<f:facet name="header">
							<ice:outputText
								value="#{msgs_supplier.SEND_QUOTE_TO_LIST_HEADER_SELLER_COMPANY}"
								styleClass="tdheader" />
						</f:facet>
						<ice:outputText
							value="#{quoteTransactionPojo.supplierMasterPojo.companyMasterPojo.companyName}" />
					</ace:column>
					<ace:column id="quoteNameID" styleClass="tr1"
						sortBy="#{quoteTransactionPojo.quoteName}"
						filterBy="#{quoteTransactionPojo.quoteName}"
						filterMatchMode="contains">
						<f:facet name="header">
							<ice:outputText
								value="#{msgs_supplier.SEND_QUOTE_TO_LIST_HEADER_QUOTE_NAME}"
								styleClass="tdheader" />
						</f:facet>
						<ice:outputText value="#{quoteTransactionPojo.quoteName}" />
					</ace:column>
					<ace:column id="transactionStatusID" styleClass="tr1"
						sortBy="#{quoteTransactionPojo.transactionStatus}"
						filterBy="#{quoteTransactionPojo.transactionStatus}"
						filterMatchMode="contains">
						<f:facet name="header">
							<ice:outputText
								value="#{msgs_supplier.SEND_QUOTE_TO_LIST_HEADER_TRANSACTION_STATUS}"
								styleClass="tdheader" />
						</f:facet>
						<ice:outputText
							value="#{quoteEventReplyListMBean.decodeTransactionStatus(quoteTransactionPojo.transactionStatus)}" />
					</ace:column>
				</ace:dataTable>
				<ice:message for="messageBoardId" styleClass="iceMsgInfo"></ice:message>
			</center>
		</div>
	</h:form>
</h:body>
</html>
